package cn.dcw.pethome.pet.service;

import cn.dcw.pethome.basic.service.IBaseService;
import cn.dcw.pethome.basic.util.AjaxResult;
import cn.dcw.pethome.basic.util.PageList;
import cn.dcw.pethome.pet.domain.Pet;
import cn.dcw.pethome.pet.dto.PetDto;
import cn.dcw.pethome.pet.query.PetQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IPetService extends IBaseService<Pet> {

    PageList<Pet> getPet(PetQuery query);

    void onsale(List<Long> ids);

    void offsale(List<Long> ids);

    void dels(List<Long> ids);

    void addOrUpdate(Pet pet);

    PetDto getPetById(Long id);

    void adopt(Long id, HttpServletRequest request);
}
